<!-- ############################## body content ############################## -->

<div id="body_content">
	<!-- ################# topbody ############### -->
    <div id="topbody">
    	<!-- ################# menu ############### -->
    	<div id="menu_left">
			<div id="menu_left_top"></div>
			<?php $this->load->view("homes/search"); ?>
			<div id="menu_left_bottom"></div>
        </div>
        <!-- ################# menu ############### -->
        
        <div id="center_banner_topbody">
        	<div id="slider" class="nivoSlider">
            	<a href="javascript:void(0)"><img src="<?php echo base_url(); ?>uploaded/slider/ha-noi.jpg" alt="" /></a>
                <a href="javascript:void(0)"><img src="<?php echo base_url(); ?>uploaded/slider/hoa-phuong-no.jpg" alt="" /></a>
                <a href="javascript:void(0)"><img src="<?php echo base_url(); ?>uploaded/slider/thieu_nu_hanoi2.jpg" alt="" /></a>
                <a href="javascript:void(0)"><img src="<?php echo base_url(); ?>uploaded/slider/halong1.jpg" alt="" /></a>
                <a href="javascript:void(0)"><img src="<?php echo base_url(); ?>uploaded/slider/Ha_Long322.jpg" alt="" /></a>
                <a href="javascript:void(0)"><img src="<?php echo base_url(); ?>uploaded/slider/1336034839_halong.jpg" align="" /></a>
            </div>
            <!--img src="<?php echo base_url(); ?>public/images/index_search_15.jpg" alt="" width="506" /-->
            <a href="<?php echo base_url(); ?>free-card-member.html"><img src="<?php echo base_url(); ?>public/images/card_member.jpg" width="506" alt="" style="margin-top:7px" /></a>
        </div>
        <div id="promotion_topbody">
        		<div id="title_promotion_topbody">HOT DEAL</div>
                <div id="content_promotion_topboy">
                		<img src="<?php echo base_url()."uploads/tours/thumb/".$deal['tour_image_deal']; ?>" width="215" height="227" alt="">
                        <div id="txt_promotion_topboy">
                        		<div class="price_old"> US $300 / Pax</div>
                                <div class="price_new">SAVE 20% US $274 / Pax</div>
                                <div class="validity">Validity till: <br/>Dec 31st, 2012 </div>
                                <div class="booknow"><a href="<?php echo base_url()."hot-deal/".$deal['tour_name_rewrite']."-".$deal['tour_id']; ?>.html" class="linktrang">Book Now</a></div>
                        </div>
                </div>
        </div>
        
    </div>
    <!-- ################# end topbody ############### -->
    
    
    <!-- ################# best selling tour ############### -->
    <div id="bestselling">
    	<div class="title_hanoihalongtours">
        	<h1>Best Selling Tours</h1>
            <p>Do you want to know the best selling tour at hanoihalongtours.com</p>
        </div>
         <!-- ################# box selling tour ############### -->
        <div id="conent_bestselling">
        <?php
			if(isset($hottours) && $hottours != NULL){
				foreach($hottours as $items){
		?>
        		<div class="box_bestselling">
                	<div class="txt_box_bestselling">
                	<div class="img_box_bestselling"><img src="<?php echo base_url()."uploads/tours/thumb/".$items['tour_image1']; ?>" width="160" height="102" /></div>
                    <div class="tourname_bestselling"><a href="<?php echo base_url()."best-selling-tours/".$items['tour_name_rewrite']."-".$items['tour_id']; ?>.html"><b><?php echo $items['tour_name']; ?></b></a></div>
                    <div class="date_bestselling"><?php echo $items['tour_type']; ?></div>
                    <div class="price_old_bestselling">Price: US $<?php echo $items['tour_price_old']; ?></div>
                    <div class="price_new_bestselling"><b>NOW: US $<?php echo $items['tour_price']; ?></b></div>
                    <div class="promotion_bestselling">
                    		<ul>
                            	<li>Hot Deal 25% OFF</li>
                                <li>Free gif member card</li>
                                <li>Last Minute Booking</li>
                            </ul>
                    </div>
                    </div>
                    <div class="detail_bestselling"><a href="<?php echo base_url()."best-selling-tours/".$items['tour_name_rewrite']."-".$items['tour_id']; ?>.html" class="linktrang">Click here for details</a></div>
                </div>
        <?php
				}
			}
		?>            
        </div>
         <!-- ################# endbox selling tour ############### -->
    </div>
    <!-- ################# end best selling tour ############### -->
    
    <div id="content_mid">
    
    		<!-- ################# left mid ############### -->
    		<div id="left_content_mid">
            		<?php
					function cut_str($val,$start,$end){
							$total 	= strlen($val);
							$cutted = mb_substr($val,$start,$end,'UTF-8');
							$cutted_leng = strlen($cutted);
							if($cutted_leng < $total){
								$seccess = $cutted."...";
							}else{
								$seccess = $cutted;
							}
							return $seccess;
						}
					?>
            		<!-- ################# cat tour ############### -->
            		<div id="cat_tour">
                    		<div class="box_cat_tour">
                            		<div class="title_boxcattour"><h2><?php echo $hanoits['cate_name']; ?></h2></div>
                                    <div class="img_boxcattour"><img src="<?php echo base_url(); ?>public/images/hanoi_tours.jpg" width="340" height="79" /></div>
                                    <div class="des_boxcattour"><?php echo strip_tags(cut_str($hanoits['cate_ext'],0,300)); ?></div>
                                    <div class="name_boxcattour"> 
                                    	<ul>
	                                    <?php
										if(isset($cagories_hn) && $cagories_hn != NULL){
											foreach($cagories_hn as $item_hn){
												echo "<li><a href='".base_url().$hanoits['cate_rewrite']."-".$hanoits['cate_id']."/".$item_hn['cago_id']."/".$item_hn['cago_rewrite'].".html'>".$item_hn['cago_name']."</a></li>";
											}
										}
										?>
                                    	</ul>
                                    </div>
                                     <div class="viewmore"><a href="<?php echo base_url(); ?>hanoi-travel-52.html" class="linktrang">View more</a></div>
                            </div>
                            <div class="box_cat_tour2">
                            		<div class="title_boxcattour"><h2><?php echo $halongts['cate_name']; ?></h2></div>
                                    <div class="img_boxcattour"><img src="<?php echo base_url(); ?>public/images/halong_tours.jpg" width="340" height="79" /></div>
                                    <div class="des_boxcattour"><?php echo strip_tags(cut_str($halongts['cate_ext'],0,300)); ?></div>
                                    <div class="name_boxcattour"> 
                                    	<ul>
                                        <?php
										if(isset($cagories_hl) && $cagories_hl != NULL){
											foreach($cagories_hl as $item_hl){
												echo "<li><a href='".base_url().$halongts['cate_rewrite']."-".$halongts['cate_id']."/".$item_hl['cago_id']."/".$item_hl['cago_rewrite'].".html'>".$item_hl['cago_name']."</a></li>";
											}
										}
										?>
                                        </ul>
                                    </div>
                                    <div class="viewmore"><a href="<?php echo base_url(); ?>halong-travel-88.html" class="linktrang">View more</a></div>
                            </div>
                            
                    </div>
                    <!-- ################# end cattour ############### -->      
                    <div id="brochure_online">
                       <a href="<?php echo $config['config_linkpdf']; ?>"><img src="<?php echo base_url(); ?>public/images/index_cut_52.jpg" width="359" height="84" alt=""></a>
                       <img src="<?php echo base_url(); ?>public/images/index_cut_54.jpg" width="351" height="84" alt="" style="margin-right:0px;">
                    </div>
                    <!-- ################# vietnam package tours ############### -->
                    <div id="vietnam_package_tours">
                    		<div class="title_hanoihalongtours2">
					        	<h1><?php echo $packagets['cate_name']; ?></h1>
					            <p>Get more packages tour in Vietnam</p>
					        </div>
                            <script type="text/javascript">
							$(document).ready(function(){
								var $obj 	= $("a.package");
								var $show 	= $(".list_package_tours");
								$obj.live("click",function(){
									$id = $(this).attr("name");
									$(".selected").removeClass("selected");
									$(this).addClass("selected");
									$.ajax({
										"url" 	: "<?php echo base_url(); ?>home/ajax/short",
										"type"	: "POST",
										"data" 	: "value="+$id,
										"async" : false,
										success : function(result){
											$show.html(result);
										}
									});
								});
							});
                            </script>
                            <div class="sup_vietnam_tours">
                            	<ul>
                                <?php
								if(isset($cagories_pa) && $cagories_pa != NULL){
									foreach($cagories_pa as $item_pa){
										echo "<li><a href='javascript:void(0)' class='package' name='".$item_pa['cago_id']."'>".$item_pa['cago_name']."</a></li>";
									}
								}
								?>
                                </ul>
                            </div>
                            <div class="list_package_tours">
                            <?php
							if(isset($packagte)){
								foreach($packagte as $pake){
							?>
                            	<!--     aaaaaaaaaaaaaaaaaaaa -->
                                <div class="box_bestselling2">
                                <div class="txt_box_bestselling">
				                	<div class="img_box_bestselling"><img src="<?php echo base_url()."uploads/tours/thumb/".$pake['tour_image1']; ?>" width="160" height="102" /></div>
				                    <div class="tourname_bestselling"><a href="<?php echo base_url()."vietnam-package-tours-124/".$pake['tour_name_rewrite']."-".$pake['tour_id'].".html"?>"><b><?php echo $pake['tour_name']; ?></b></a></div>
				                    <div class="date_bestselling">3days - 2nights</div>
				                    <div class="price_old_bestselling">Price: US $234</div>
				                    <div class="price_new_bestselling"><b>NOW: US $210</b></div>
				                    <div class="promotion_bestselling">
				                    		<ul>
				                            	<li>Hot Deal 25% OFF</li>
				                                <li>Free gif member card</li>
				                                <li>Last Minute Booking</li>
				                            </ul>
				                    </div>
			                      </div>
				                    <div class="detail_bestselling"><a href="<?php echo base_url()."vietnam-package-tours-124/".$pake['tour_name_rewrite']."-".$pake['tour_id'].".html"?>" class="linktrang">Click here for details</a></div>
				                </div> 
                            <?php
							
								}
							}
							?>                           
                            </div>
							 <!-- #################  end vietnam package tours ############### -->
                    </div>
                    
                    <div id="best_photo"><img src="<?php echo base_url(); ?>public/images/best_photos.jpg" width="720" height="126" /></div>
                    <div id="about_hanoihalongtours">
						     <!-- Codrops top bar --><!--/ Codrops top bar -->
                             
                              <!-- #################
                                <section class="ac-container">
                                <?php
								$stt = 1;
	                            if(isset($config)){
								   $intro = array(
								   		"About Us" => $config['config_about'],
										"Who we are" => $config['config_weare'],
										"What we do" => $config['config_wedo'],
										"Why choose us" => $config['config_whyus'],
										"Meet our team" => $config['config_meet'],
										"Our partners" => $config['config_our']
								   );
	                               foreach($intro as $key => $val){
	                            ?>
	                                <div>
	                                    <input id="ac-<?php echo $stt; ?>" name="accordion-1" type="radio" checked >
	                                    <label for="ac-<?php echo $stt; ?>"><?php echo $key; ?></label>
	                                    <article class="ac-small">
	                                    <?php echo $val; ?>
	                                    </article>
	                                </div>
	                            <?php
									$stt++;
								   }
							   }
							   ?>
							</section>
                             ############### -->
                            
                    </div>
            </div>
            <!-- ################# end left mid ############### -->
            
            <!-- ################# left mid ############### -->
            <div id="right_content_mid">
            
            	<div id="support_online"><img src="<?php echo base_url(); ?>public/images/support_online.jpg" width="210" height="135" /></div>
                <div id="travel_guide"><img src="<?php echo base_url(); ?>public/images/travel_guide.jpg" width="210" height="135" /></div>
                
                <!-- ################# halong cruises ############### -->
                <div id="halong_cruises">
                	<div class="title_halong_cruises"><img src="<?php echo base_url(); ?>public/images/icon_cruises.png" width="48" height="28" /><h2>Halong Cruises</h2></div>
                    <?php
					if(isset($halongcruise) && $halongcruise != NULL){
						foreach($halongcruise as $hlcrui){
					?>
                    <div class="right_halong_cruises">
                    		<div class="img_halong_cruises"><img src="<?php echo base_url(); ?>uploads/cruises/thumb/<?php echo $hlcrui['cruise_image1']; ?>" width="60" height="40" /></div>
                            <div class="des_halong_cruises"><a href="<?php echo base_url()."halong-travel-88/cruises/".$hlcrui['cruise_name_rewrite']."-".$hlcrui['cruise_id']; ?>.html"><?php echo $hlcrui['cruise_name']; ?></a> </div>
                            <div class="type_halong_cruises">
                              <div class="stars" style="margin-bottom:3px">
                                	<?php
				                        echo "<div class='star_active' style='width:";
				                        if(is_numeric($hlcrui['cruise_star'])){ echo ($hlcrui['cruise_star']*12);}else{
				                            echo "36";
				                        }
				                        echo "px;'></div>";
				                    ?>
                                </div>
                              <span> <a href="<?php echo base_url()."halong-travel-88/cruises/".$hlcrui['cruise_name_rewrite']."-".$hlcrui['cruise_id']; ?>.html">Details</a></span>
                            </div>
                    </div>
                    <?php
					}	}
					?>                
                </div>
                 <!-- ################# end halong cruises ############### -->
                 
                 
                 <!-- ################# why us ############### -->
                 <div id="whychoiseus">
                 		<div class="whychoiseus_title"><b>Why Book With Us</b></div>
          				<div class="body_whychoiseus">
                        
                        		<div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>Always Avaible Discount</p>
                                </div>
                         
                                <div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>Friendly & Pro Local Guides</p>
                                </div>
                                
                                <div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>We will never beaten on price and always offer the Lowest Guarantee</p>
                                </div>
                                
                                <div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>Dedicated personal travel experts</p>
                                </div>
                                
                                <div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>Best Customer Service</p>
                                </div>
                                
                                <div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>Integrity and Honesty</p>
                                </div>
                                <div class="line_whoiseus">
                           	    <img src="<?php echo base_url(); ?>public/images/tick_why.jpg" width="15" height="17" />
                                <p>Always Avaible Discount</p>
                                </div>
                                <div class="last_line"><img src="<?php echo base_url(); ?>public/images/last_line.jpg" width="208" height="130" /></div>
                        </div>
                 </div>
                   <!-- ################# end why us ############### -->
            </div>
            <!-- ################# right mid ############### -->
    </div>
</div>
<!-- ############################## end body content ############################## -->